package com.wpre.vampiremq.mqserver.core;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:交换机和队列之间的关联关系
 * User: LianBao
 * Date: 2025-01-11
 * Time: 15:46
 */
public class Binding {

    //交换机名称
    private String exchangeName;

    //队列名称
    private String queueName;

    //绑定关键字,与routingKey对应的
    private String bindingKey;

    // binding是依附于Exchange和Queue的,
    // 对于持久化来说,如果 Exchange 和 Queue 任何一个都没有持久化
    // 此时针对binding持久化是没有意义的,自动删除也是类似


    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public String getExchangeName() {
        return exchangeName;
    }

    public void setExchangeName(String exchangeName) {
        this.exchangeName = exchangeName;
    }

    public String getBindingKey() {
        return bindingKey;
    }

    public void setBindingKey(String bindingKey) {
        this.bindingKey = bindingKey;
    }
}
